package org.wzq.android_api;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import org.wzq.utils.Helper_root;

public class Act_IsRoot extends Activity {
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.act_is_root);

        final TextView tvInfo = (TextView) findViewById(R.id.tv_info);
        findViewById(R.id.btn_check).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                if (Helper_root.isRoot()) {
                    tvInfo.setText("already root");
                } else {
                    tvInfo.setText("not root");
                }
            }
        });
    }



}
